package entity;

public class Order {

    private int id;
    private String name;
    private String disMegs;
    private String time;
    private String address;
    private int states;
    private Double sumPrices;

    public Order(int id, String name, String disMegs, String time, String address, int states, Double sumPrices) {
        this.id = id;
        this.name = name;
        this.disMegs = disMegs;
        this.time = time;
        this.address = address;
        this.states = states;
        this.sumPrices = sumPrices;
    }

    public Order() {
        super();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    protected void finalize() throws Throwable {
        super.finalize();
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", disMegs='" + disMegs + '\'' +
                ", time='" + time + '\'' +
                ", address='" + address + '\'' +
                ", states=" + states +
                ", sumPrices=" + sumPrices +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDisMegs() {
        return disMegs;
    }

    public void setDisMegs(String disMegs) {
        this.disMegs = disMegs;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getStates() {
        return states;
    }

    public void setStates(int states) {
        this.states = states;
    }

    public Double getSumPrices() {
        return sumPrices;
    }

    public void setSumPrices(Double sumPrices) {
        this.sumPrices = sumPrices;
    }
}
